* config.guess: New file.
authorJim Blandy <jimb@redhat.com>
Wed, 26 May 1993 21:34:10 +0000 (21:34 +0000)
committerJim Blandy <jimb@redhat.com>
Wed, 26 May 1993 21:34:10 +0000 (21:34 +0000)
* configure.in: Use it, tentatively.

configure1.in

index b949da92abfd414a48037d76aa0f795bf8a9154c..be1dbb6aa78669f60df9fdcaccbeb32965d983f9 100755 (executable)
@@ -273,12 +273,18 @@ Set it to either \`yes' or \`no'."
 done
 
 if [ "${configuration}" = "" ]; then
-  (echo "${progname}: You must specify a configuration name as an argument."
-   echo "${short_usage}") >&2
-  exit 1
+  echo '- You did not tell me what kind of host system you want to configure.
+- I will attempt to guess the kind of system this is.' 1>&2
+  guesssys=`echo ${progname} | sed 's/configure$/config.guess/'`
+  if configuration=`${guesssys}` ; then
+    echo "- Looks like this is a ${configuration}" 1>&2
+  else
+    echo '- Failed to guess the system type.  You need to tell me.' 1>&2
+    echo "${short_usage}") >&2
+    exit 1
+  fi
 fi
 
-
 #### Decide where the source is.
 case "${srcdir}" in